package com.yunyouyi.interviewDrill.constant;

/**
 * Redis常量
 */
public interface RedisConstant {

    /**
     * 用户签到记录key的前缀
     */
    String USER_SIGN = "user:signins:";

    /**
     * 获取用户签到记录的redis key
     * @param year
     * @param userId
     * @return
     */
    static String getUserSignInRedisKey(int year,long userId){
        return String.format("%s:%s:%S",USER_SIGN,year,userId);
    }
}
